diff options
| author | Fuwn <[email protected]> | 2023-12-25 00:46:05 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-12-25 00:46:05 -0800 |
| commit | 486c01a572f50c6db925ca74600ba5d4984752df (patch) | |
| tree | 96fac5e1aa3f221e141a74ada0864044bc70c5ac /src/routes/user/[user]/+page.svelte | |
| parent | feat(html): update title (diff) | |
| download | due.moe-486c01a572f50c6db925ca74600ba5d4984752df.tar.xz due.moe-486c01a572f50c6db925ca74600ba5d4984752df.zip | |
feat(routes): route-specific head title
Diffstat (limited to 'src/routes/user/[user]/+page.svelte')
| -rw-r--r-- | src/routes/user/[user]/+page.svelte | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/routes/user/[user]/+page.svelte b/src/routes/user/[user]/+page.svelte index 9f55aa8b..b365127a 100644 --- a/src/routes/user/[user]/+page.svelte +++ b/src/routes/user/[user]/+page.svelte @@ -1,5 +1,6 @@ <script lang="ts"> import { user, type User } from '$lib/AniList/user'; + import HeadTitle from '$lib/HeadTitle.svelte'; import { estimatedDayReading } from '$lib/Media/Manga/time'; import { onMount } from 'svelte'; @@ -16,6 +17,8 @@ // 8.5827814569536423841e0 </script> +<HeadTitle route={`${data.username}'s Profile'`} path={`/user/${data.username}`} /> + {#if userData === null} Could not load user profile for <a href={`https://anilist.co/user/${data.username}`} |